﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Menu_Header : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["userid"] != null)
        {
            LblUsername.Text = Session["firstname"].ToString().ToUpper() + " " + Session["lastname"].ToString().ToUpper();
        }
        else
        {
            Response.Write("<script language=javascript>");
            Response.Write("window.open('../login.aspx','_parent');");
            Response.Write("</script>");
        }
    }
    protected void LoginButton_Click(object sender, EventArgs e)
    {
        Session.Abandon();
        Response.Write("<script language=javascript>");
        Response.Write("window.open('../login.aspx','_parent');");
        Response.Write("</script>");
    }
}
